class FreshmanJaunt < DeskActionAggregate
  validates_presence_of :jaunt_id
  
  belongs_to :jaunt
  has_one :departure,
          :class_name => "Departure",
          :foreign_key => 'desk_action_aggregate_id'
  has_one :jaunt_return,
          :class_name => "JauntReturn",
          :foreign_key => 'desk_action_aggregate_id'

  def currently_active
    if jaunt_return.nil?
      true
    else
      jaunt_return.effective_at > Time.now
    end
  end

end
